/*
 * @Description:
 * @Date: 2024-07-05 09:10:40
 * @LastEditTime: 2024-08-07 08:47:47
 */
import { http } from '@/utils/http'
/** POST 请求 */
export const reportCreateAPI = (data) => {
  return http({
    url: `/app-api/countryside/report/create`,
    method: 'POST',
    data,
  })
}

// 获得村情上报分页
export const getVillagePage = (query, data) => {
  return http({
    url: `/app-api/countryside/report/page`,
    method: 'POST',
    query,
    data,
  })
}
export const getVillage = (id) => {
  return http({
    url: `/app-api/countryside/report/get?id=${id}`,
    method: 'GET',
  })
}

export const updateVillage = (data) => {
  return http({
    url: `/app-api/countryside/report/update`,
    method: 'PUT',
    data,
  })
}
